package com.ruoyi.bpm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bpm.mapper.BpmMarketingProposalMapper;
import com.ruoyi.bpm.domain.BpmMarketingProposal;
import com.ruoyi.bpm.service.IBpmMarketingProposalService;

/**
 * 营销企划书信息Service业务层处理
 * 
 * @author pjq
 * @date 2025-03-20
 */
@Service
public class BpmMarketingProposalServiceImpl implements IBpmMarketingProposalService 
{
    @Autowired
    private BpmMarketingProposalMapper bpmMarketingProposalMapper;

    /**
     * 查询营销企划书信息
     * 
     * @param marketingProposalId 营销企划书信息主键
     * @return 营销企划书信息
     */
    @Override
    public BpmMarketingProposal selectBpmMarketingProposalByMarketingProposalId(Long marketingProposalId)
    {
        return bpmMarketingProposalMapper.selectBpmMarketingProposalByMarketingProposalId(marketingProposalId);
    }

    /**
     * 查询营销企划书信息列表
     * 
     * @param bpmMarketingProposal 营销企划书信息
     * @return 营销企划书信息
     */
    @Override
    public List<BpmMarketingProposal> selectBpmMarketingProposalList(BpmMarketingProposal bpmMarketingProposal)
    {
        return bpmMarketingProposalMapper.selectBpmMarketingProposalList(bpmMarketingProposal);
    }

    /**
     * 新增营销企划书信息
     * 
     * @param bpmMarketingProposal 营销企划书信息
     * @return 结果
     */
    @Override
    public int insertBpmMarketingProposal(BpmMarketingProposal bpmMarketingProposal)
    {
        return bpmMarketingProposalMapper.insertBpmMarketingProposal(bpmMarketingProposal);
    }

    /**
     * 修改营销企划书信息
     * 
     * @param bpmMarketingProposal 营销企划书信息
     * @return 结果
     */
    @Override
    public int updateBpmMarketingProposal(BpmMarketingProposal bpmMarketingProposal)
    {
        return bpmMarketingProposalMapper.updateBpmMarketingProposal(bpmMarketingProposal);
    }

    /**
     * 批量删除营销企划书信息
     * 
     * @param marketingProposalIds 需要删除的营销企划书信息主键
     * @return 结果
     */
    @Override
    public int deleteBpmMarketingProposalByMarketingProposalIds(Long[] marketingProposalIds)
    {
        return bpmMarketingProposalMapper.deleteBpmMarketingProposalByMarketingProposalIds(marketingProposalIds);
    }

    /**
     * 删除营销企划书信息信息
     * 
     * @param marketingProposalId 营销企划书信息主键
     * @return 结果
     */
    @Override
    public int deleteBpmMarketingProposalByMarketingProposalId(Long marketingProposalId)
    {
        return bpmMarketingProposalMapper.deleteBpmMarketingProposalByMarketingProposalId(marketingProposalId);
    }
}
